package com.csdj.questions.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 问题表
 * </p>
 *
 * @author 刘宇
 * @since 2022-03-02
 */
@TableName("t_question")
public class TQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表Id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 问题Id
     */
    private String quesId;

    /**
     * 话题Id(多个话题之间用·隔开) 
     */
    private String topicId;

    /**
     * 问题名称
     */
    private String quesName;

    /**
     * 问题描述
     */
    private String quesDescribe;

    /**
     * 图片
     */
    private String photo;

    /**
     * 回答次数
     */
    private Integer answerNumb;

    /**
     * 关注次数
     */
    private Integer attentionNumb;

    /**
     * 浏览次数
     */
    private Integer browseNumb;

    /**
     * 匿名（1是/0否）
     */
    private String anonymity;

    /**
     * 创建时间
     */
    private LocalDate createTime;

    /**
     * 用户id,关联user表
     */
    private Integer userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }
    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }
    public String getQuesName() {
        return quesName;
    }

    public void setQuesName(String quesName) {
        this.quesName = quesName;
    }
    public String getQuesDescribe() {
        return quesDescribe;
    }

    public void setQuesDescribe(String quesDescribe) {
        this.quesDescribe = quesDescribe;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public Integer getAnswerNumb() {
        return answerNumb;
    }

    public void setAnswerNumb(Integer answerNumb) {
        this.answerNumb = answerNumb;
    }
    public Integer getAttentionNumb() {
        return attentionNumb;
    }

    public void setAttentionNumb(Integer attentionNumb) {
        this.attentionNumb = attentionNumb;
    }
    public Integer getBrowseNumb() {
        return browseNumb;
    }

    public void setBrowseNumb(Integer browseNumb) {
        this.browseNumb = browseNumb;
    }
    public String getAnonymity() {
        return anonymity;
    }

    public void setAnonymity(String anonymity) {
        this.anonymity = anonymity;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "TQuestion{" +
            "id=" + id +
            ", quesId=" + quesId +
            ", topicId=" + topicId +
            ", quesName=" + quesName +
            ", quesDescribe=" + quesDescribe +
            ", photo=" + photo +
            ", answerNumb=" + answerNumb +
            ", attentionNumb=" + attentionNumb +
            ", browseNumb=" + browseNumb +
            ", anonymity=" + anonymity +
            ", createTime=" + createTime +
            ", userId=" + userId +
        "}";
    }
}
